import request from '@/utils/request'

// 查询仓库列表
export function listWarehouses(query) {
  return request({
    url: '/wm/warehouses/list',
    method: 'get',
    params: query
  })
}
// 查询仓库信息
export function checkWarehouses(code) {
  return request({
    url: '/wm/warehouses/' + code,
    method: 'get'
  })
}
// 现存量列表
export function listBlance(query) {
  return request({
    url: '/wm/balance/balanceSummary',
    method: 'get',
    params: query
  })
}

// 导出现存量
export function exportBalance(query) {
  return request({
    url: '/wm/balance/exportBalance',
    method: 'get',
    params: query
  })
}

// 入库明细列表
export function listWmIn(query) {
  return request({
    url: '/wm/in/getInDetail',
    method: 'get',
    params: query
  })
}
// 入库明细导出
export function exportWmIn(query) {
  return request({
    url: '/wm/in/DetailExport',
    method: 'get',
    params: query
  })
}

// 出库明细列表
export function listWmOut(query) {
  return request({
    url: '/wm/out/getOutDetail',
    method: 'get',
    params: query
  })
}

// 出库明细导出
export function exportWmOut(query) {
  return request({
    url: '/wm/out/DetailExport',
    method: 'get',
    params: query
  })
}

// 出入库明细列表
export function listWmInOut(query) {
  return request({
    url: '/wm/warehouses/getOutInDetail',
    method: 'get',
    params: query
  })
}

// 出入库明细导出
export function exportWmInOut(query) {
  return request({
    url: '/wm/warehouses/DetailExport',
    method: 'get',
    params: query
  })
}
